<template>
	<view class="page-search">
			<view class="search">
				<view class="search-form round bg-white" @click="clickInputSearch">
					<text class="search-icon" :style="{ backgroundImage: 'url(/static/images/ss-icon.png)', 
					backgroundSize: 'cover' }">
					</text>
					
					<input :focus="true" 
						v-model="searchVal" 
						:adjust-position="false" 
						type="text" 
						maxlength="20"
						placeholder="搜索" 
						confirm-type="search">
					</input>
				</view>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				searchVal: ''
			}
		},
		methods: {
			clickInputSearch() {
				
			}
		}
	}
</script>

<style lang="scss">
.search-form{
	height: 68rpx;
	background-color: rgb(231, 229, 229);
	line-height: 68rpx;
	margin: 0 auto;
	width: 588rpx;
	margin-top: 22rpx;
	border-radius: 40rpx;
	padding-left: 64rpx;
	position: relative;
	// padding-left: 60rpx;
	uni-input, input{
		line-height: 68rpx;
		height: 68rpx;
		float: left;
	}
	.search-icon{
		width: 32rpx;
		height: 32rpx;
		margin-left: 22rpx;
		margin-right: 10rpx;
		float: left;
		margin-top: 20rpx;
		position: absolute;
		left: 0;
	}
}
</style>